package com.spring.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.boot.entity.UserInfo;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<UserInfo> {
    @Select("select * from sys_user where username = #{username}")
    UserInfo getUserByUsername(String username);

    @Select("update sys_user set password = #{password} where username = #{username}")
    void updateByUsername(String username , String password);
}
